/**
 * order
 * @param  {[type]} sequelize [description]
 * @param  {[type]} DataTypes [description]
 * @return model
 */
export default (sequelize, DataTypes) => sequelize.define('order', {
  id: {
    type: DataTypes.UUID,
    primaryKey: true
  },
  code: DataTypes.STRING(32),
  user_id: {
    type: DataTypes.UUID,
    references: {
      model: 'users',
      key: 'id'
    }
  },
  price: DataTypes.STRING(20),
  recipient_id: DataTypes.STRING(36),
  number: DataTypes.BIGINT(8),
  tech_requirements: DataTypes.STRING(100),
  type: DataTypes.INTEGER(2),
  deadline: DataTypes.DATE,
  size: DataTypes.STRING(10),
  desc: DataTypes.STRING(300),
  status: DataTypes.INTEGER(2)
})
